//
//  DDTypeDefine.h
//  dingdang
//
//  Created by Chen Jing on 15-7-6.
//  Copyright (c) 2015年 阮 沧晖. All rights reserved.
//

#ifndef dingdang_DDTypeDefine_h
#define dingdang_DDTypeDefine_h

typedef enum : NSInteger {
    DDType_question_questionPublishType_help = 0,  //帮助
    DDType_question_questionPublishType_Encryption,  //加密
    DDType_question_questionPublishType_Reward,  //悬赏
} DDType_Question_QuestionPublishType;


/*
 @"单选题" : @"0",\
 @"多选题" : @"1", \
 @"判断题" : @"2", \
 @"不定项" : @"3", \
 @"填空题" : @"4", \
 @"简答题" : @"5", \
 @"套题" : @"6", \
 */
typedef enum : NSInteger {
    DDType_question_questionType_DanXuanTi = 0, //单选
    DDType_question_questionType_DuoXuanTi = 1,     //多选题
    DDType_question_questionType_PanDuanTi = 2,     //判断题
//    DDType_question_questionType_BuDingXiang = 3,   //不定项
    DDType_question_questionType_TianKongTi = 4,    //填空题
    DDType_question_questionType_JianDaTi = 5,      //简答题
//    DDType_question_questionType_TaoTi,         //套题
} DDType_Question_QuestionType;


#define checkNull(_X) [(_X) isEqual:[NSNull null]] || (_X) == nil || [(_X) isEqualToString:@"(null)"] ? @"" : (_X)


#endif
